package com.ww.yaodao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ww.yaodao.mapper.AllshopMapper;
import com.ww.yaodao.model.bo.AllShopDO;
import com.ww.yaodao.service.AllShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AllShopServiceImpl implements AllShopService {
    @Autowired
    private AllshopMapper allshopMapper;

    @Override
    public AllShopDO selectShop(Integer aid) {
        QueryWrapper<AllShopDO> wrapper = new QueryWrapper<>();
        wrapper.eq("aid", aid);
        AllShopDO shop = allshopMapper.selectOne(wrapper);
        return shop;
    }
}
